package com.x86.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.x86.domain.Batch;
import com.x86.domain.ComputerVO;import org.apache.ibatis.annotations.Mapper;import java.util.List;

/**
 * @author 风亦未止
 * @date 2022/4/17 19:47
 */
@Mapper
public interface BatchMapper extends BaseMapper<Batch> {
    /**
     * 获取最后插入的id
     *
     * @return
     */
    Integer getLastId();

    /**
     * 分批次获取电脑信息
     *
     * @param batch
     * @return
     */
    List<ComputerVO> getComInfoByBatch(Batch batch);
}